/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.hutech09.jsale.web.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

/**
 *
 * @author Nam
 */
@ManagedBean
@RequestScoped
public class SecurityCtrl {

    /**
     * Creates a new instance of SecurityCtrl
     */
    public SecurityCtrl() {
    }
    
    public String logout(){
        FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
        return "managerHome";
    }
}
